package com.lgq.service;

import com.lgq.bean.Institute;
import com.lgq.dao.InstituteMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @program: stu_info_manager
 * @description:
 * @author: Lin
 * @create: 2019-01-05 00:07
 **/
@Service
public class InstituteService {

    /**
     * 自动装配instituteMapper
     */
    @Autowired
    private InstituteMapper instituteMapper;

    /**
     *
     * @return 全部学院的集合
     */
    public List<Institute> getInstitutes(){
        List<Institute> list=instituteMapper.selectByExample(null);
        return list;
    }

}
